package wangxiaotao.bean.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import wangxiaotao.enums.OrderStatue;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class OrderVO implements Serializable {
    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空")
    private Integer id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空")
    private Integer userId;

    /**
     * 订单的用户留的姓名
     */
    @NotBlank(message = "订单姓名不能为空")
    private String orderName;

    /**
     * 订单的用户留的电话
     */
    @NotBlank(message = "订单电话不能为空")
    private String orderPhone;


    private String orderEmail;

    /**
     * 订单号
     */
    @NotBlank(message = "订单号不能为空")
    private String orderNo;

    /**
     * 订单状态 已付款、待付款、待退款、已退款、错误
     */
    @NotNull(message = "订单状态不能为空")
    private OrderStatue orderStatue;

    private String orderRoomNo;

    private String orderRoomTypeId;

    /**
     * 实际支付总金额
     */
//    @Digits(integer = 9, fraction=2, message = "Price格式不正确")
//    @DecimalMin(value = "0.00", message = "Price格式不正确")
//    @NotNull(message = "实际支付总金额不能为空")
    private BigDecimal orderRealPrice;


    private String orderCancerReason;

    private BigDecimal orderScore;

    private String orderComment;

    private String orderNote;

}
